I am getting unknown object attribute (Paragraph Number) while doing excel export

Hi,

I have written a layout dxl code for displaying linked/targeted object text, heading and its full path and created a view with the mail column content and trying to generate excel export. I am getting an error unknown object attribute(Paragraph Number). This paragraph number attribute is created for heading number by converting headings into normal text and giving object type as Heading. So in the layout dxl code i have used paragraph number to get the heading number. 

The error is: -R-E- DXL: <Line:18> unknown Object attribute (Paragraph Number)
  -I- DXL: execution halted

Is there any way to get the object heading number with out using paragraph number attribute?

The below is the code:

Link lnk

for lnk in obj -> "*" do

{

string tmn = fullName target(lnk)

if(!open module tmn)

{

read(tmn, false)

}

Object trg = target lnk

Object par = parent trg

if (!null par) {

displayRich "\\b" tmn "\n" par."Paragraph Number" " " par."Object Text" ""

}

string stext = trg."Object Text"

display stext"\n" "\n"

}

out put of the above code is:

1. Link full path.

2. 2.3.4 Heading Number

3. Object Text

at line<12> im getting an error such as unknown object attribute(Paragraph Number).

I have got the below resolution in google but i am unable to understand fully. Please explain it.

Update the script to use the correct method to determine the object's number by using the following number perm:

number
Declaration string number(Object o) 

Operation returns the hierarchical object number (for example 2.1.1-0.1) of Object o as a string.

Could you please help me to resolve this error that i am getting while generating excel export.

 

Regards,

Naidu.


DXLAdimn - Tue Apr 11 05:22:08 EDT 2017

Re: I am getting unknown object attribute (Paragraph Number) while doing excel export
PekkaMakinen - Tue Apr 11 05:31:57 EDT 2017

Use function number(Object o), it is not an attribute

Re: I am getting unknown object attribute (Paragraph Number) while doing excel export
DXLAdimn - Tue Apr 11 05:36:56 EDT 2017

PekkaMakinen - Tue Apr 11 05:31:57 EDT 2017

Use function number(Object o), it is not an attribute

I want to display heading number  and name of linked/targeted object like 3.4.5 Heading Name

 

Thanks,

Naidu

Re: I am getting unknown object attribute (Paragraph Number) while doing excel export
Mathias Mamsch - Tue Apr 11 06:14:55 EDT 2017

DXLAdimn - Tue Apr 11 05:36:56 EDT 2017

I want to display heading number  and name of linked/targeted object like 3.4.5 Heading Name

 

Thanks,

Naidu

Here you can find a snippet to recreate the looks of the main column from layout DXL: https://www.ibm.com/developerworks/community/forums/html/topic?id=77777777-0000-0000-0000-000014480782&ps=25

Regards, Mathias